<case value="text">
    <input type="text" class="form-control input text" name="{$[type]form.name}" value="{$[type]form.value}" {$[type]form.extra_attr}>
</case>